package com.his.bean;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 库存表
 * @TableName dzm_his_inventory
 */
public class DzmHisInventory implements Serializable {
    /**
     * 库存ID
     */
    private Integer inventoryId;

    /**
     * 药品ID
     */
    private Integer hmrId;

    /**
     * 诊所ID
     */
    private Integer companyId;

    /**
     * 库存数量
     */
    private Long inventoryNum;

    /**
     * 单位
     */
    private String inventoryUnit;

    /**
     * 批发价
     */
    private BigDecimal inventoryTradePrice;

    /**
     * 处方价
     */
    private BigDecimal inventoryPrescriptionPrice;

    /**
     * 批发额
     */
    private BigDecimal inventoryTradeTotalAmount;

    /**
     * 处方额
     */
    private BigDecimal inventoryPrescriptionTotalAmount;

    /**
     * 库存预警
     */
    private String earlyWarning;

    /**
     * 更新时间
     */
    private String updateTime;

    private static final long serialVersionUID = 1L;

    /**
     * 库存ID
     */
    public Integer getInventoryId() {
        return inventoryId;
    }

    /**
     * 库存ID
     */
    public void setInventoryId(Integer inventoryId) {
        this.inventoryId = inventoryId;
    }

    /**
     * 药品ID
     */
    public Integer getHmrId() {
        return hmrId;
    }

    /**
     * 药品ID
     */
    public void setHmrId(Integer hmrId) {
        this.hmrId = hmrId;
    }

    /**
     * 诊所ID
     */
    public Integer getCompanyId() {
        return companyId;
    }

    /**
     * 诊所ID
     */
    public void setCompanyId(Integer companyId) {
        this.companyId = companyId;
    }

    /**
     * 库存数量
     */
    public Long getInventoryNum() {
        return inventoryNum;
    }

    /**
     * 库存数量
     */
    public void setInventoryNum(Long inventoryNum) {
        this.inventoryNum = inventoryNum;
    }

    /**
     * 单位
     */
    public String getInventoryUnit() {
        return inventoryUnit;
    }

    /**
     * 单位
     */
    public void setInventoryUnit(String inventoryUnit) {
        this.inventoryUnit = inventoryUnit;
    }

    /**
     * 批发价
     */
    public BigDecimal getInventoryTradePrice() {
        return inventoryTradePrice;
    }

    /**
     * 批发价
     */
    public void setInventoryTradePrice(BigDecimal inventoryTradePrice) {
        this.inventoryTradePrice = inventoryTradePrice;
    }

    /**
     * 处方价
     */
    public BigDecimal getInventoryPrescriptionPrice() {
        return inventoryPrescriptionPrice;
    }

    /**
     * 处方价
     */
    public void setInventoryPrescriptionPrice(BigDecimal inventoryPrescriptionPrice) {
        this.inventoryPrescriptionPrice = inventoryPrescriptionPrice;
    }

    /**
     * 批发额
     */
    public BigDecimal getInventoryTradeTotalAmount() {
        return inventoryTradeTotalAmount;
    }

    /**
     * 批发额
     */
    public void setInventoryTradeTotalAmount(BigDecimal inventoryTradeTotalAmount) {
        this.inventoryTradeTotalAmount = inventoryTradeTotalAmount;
    }

    /**
     * 处方额
     */
    public BigDecimal getInventoryPrescriptionTotalAmount() {
        return inventoryPrescriptionTotalAmount;
    }

    /**
     * 处方额
     */
    public void setInventoryPrescriptionTotalAmount(BigDecimal inventoryPrescriptionTotalAmount) {
        this.inventoryPrescriptionTotalAmount = inventoryPrescriptionTotalAmount;
    }

    /**
     * 库存预警
     */
    public String getEarlyWarning() {
        return earlyWarning;
    }

    /**
     * 库存预警
     */
    public void setEarlyWarning(String earlyWarning) {
        this.earlyWarning = earlyWarning;
    }

    /**
     * 更新时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 更新时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DzmHisInventory other = (DzmHisInventory) that;
        return (this.getInventoryId() == null ? other.getInventoryId() == null : this.getInventoryId().equals(other.getInventoryId()))
            && (this.getHmrId() == null ? other.getHmrId() == null : this.getHmrId().equals(other.getHmrId()))
            && (this.getCompanyId() == null ? other.getCompanyId() == null : this.getCompanyId().equals(other.getCompanyId()))
            && (this.getInventoryNum() == null ? other.getInventoryNum() == null : this.getInventoryNum().equals(other.getInventoryNum()))
            && (this.getInventoryUnit() == null ? other.getInventoryUnit() == null : this.getInventoryUnit().equals(other.getInventoryUnit()))
            && (this.getInventoryTradePrice() == null ? other.getInventoryTradePrice() == null : this.getInventoryTradePrice().equals(other.getInventoryTradePrice()))
            && (this.getInventoryPrescriptionPrice() == null ? other.getInventoryPrescriptionPrice() == null : this.getInventoryPrescriptionPrice().equals(other.getInventoryPrescriptionPrice()))
            && (this.getInventoryTradeTotalAmount() == null ? other.getInventoryTradeTotalAmount() == null : this.getInventoryTradeTotalAmount().equals(other.getInventoryTradeTotalAmount()))
            && (this.getInventoryPrescriptionTotalAmount() == null ? other.getInventoryPrescriptionTotalAmount() == null : this.getInventoryPrescriptionTotalAmount().equals(other.getInventoryPrescriptionTotalAmount()))
            && (this.getEarlyWarning() == null ? other.getEarlyWarning() == null : this.getEarlyWarning().equals(other.getEarlyWarning()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getInventoryId() == null) ? 0 : getInventoryId().hashCode());
        result = prime * result + ((getHmrId() == null) ? 0 : getHmrId().hashCode());
        result = prime * result + ((getCompanyId() == null) ? 0 : getCompanyId().hashCode());
        result = prime * result + ((getInventoryNum() == null) ? 0 : getInventoryNum().hashCode());
        result = prime * result + ((getInventoryUnit() == null) ? 0 : getInventoryUnit().hashCode());
        result = prime * result + ((getInventoryTradePrice() == null) ? 0 : getInventoryTradePrice().hashCode());
        result = prime * result + ((getInventoryPrescriptionPrice() == null) ? 0 : getInventoryPrescriptionPrice().hashCode());
        result = prime * result + ((getInventoryTradeTotalAmount() == null) ? 0 : getInventoryTradeTotalAmount().hashCode());
        result = prime * result + ((getInventoryPrescriptionTotalAmount() == null) ? 0 : getInventoryPrescriptionTotalAmount().hashCode());
        result = prime * result + ((getEarlyWarning() == null) ? 0 : getEarlyWarning().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", inventoryId=").append(inventoryId);
        sb.append(", hmrId=").append(hmrId);
        sb.append(", companyId=").append(companyId);
        sb.append(", inventoryNum=").append(inventoryNum);
        sb.append(", inventoryUnit=").append(inventoryUnit);
        sb.append(", inventoryTradePrice=").append(inventoryTradePrice);
        sb.append(", inventoryPrescriptionPrice=").append(inventoryPrescriptionPrice);
        sb.append(", inventoryTradeTotalAmount=").append(inventoryTradeTotalAmount);
        sb.append(", inventoryPrescriptionTotalAmount=").append(inventoryPrescriptionTotalAmount);
        sb.append(", earlyWarning=").append(earlyWarning);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}